<div id="content_sub">{%set bopen=false%}
{% for menu in menus %}
{% if menu.url is subpath('/service') %}
	{% if menu.deep == 1 %}
	<h2>{{menu.title}}</h2>
	{% elseif menu.deep == 2 %}
	{% if bopen %}
	</ul>{%set bopen=false%}{% endif %}
	<h3>{{menu.title}}</h3>
	<ul>{%set bopen=true%}
	{% elseif menu.deep == 3 %}<li><a href="{{ site_baseurl }}{{menu.url}}">{{menu.title}}</a></li>
	{% endif %}
{% endif %}
{% endfor %}
	</ul>
</div>
{#
$twig = new Twig_Environment($loader);
$twig->addFunction('functionName', new Twig_Function_Function('someFunction'));
$twig->addFunction('otherFunction', new Twig_Function_Method($this, 'someMethod'));


{% if menu.deep == 1 and menu.url== '/service' %}<h2>{{menu.title}}</h2>


$data = array(
    'topics' => array(
        'topic1' => array('Message 1 of topic 1', 'Message 2 of topic 1'),
        'topic2' => array('Message 1 of topic 2', 'Message 2 of topic 2'),
    ),
);
{% for topic, messages in topics %}
    * {{ loop.index }}: {{ topic }}
  {% for message in messages %}
      - {{ loop.parent.loop.index }}.{{ loop.index }}: {{ message }}
  {% endfor %}
{% endfor %}
* 1: topic1
  - 1.1: The message 1 of topic 1
  - 1.2: The message 2 of topic 1
* 2: topic2
  - 2.1: The message 1 of topic 2
  - 2.2: The message 2 of topic 2
#}
